#include <stdlib.h>
#include <string.h>
#include "stm32f4xx.h"
#include "usart.h"
#include "delay.h"
#include "bsp_led.h"
#include "bsp_ds18b20.h"


int main(void)
{
    uint8_t recv_data;
    NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
    uart_init(9600);
    bsp_led_init();
    delay_init(84);

    printf("\r\nhello world\r\n");

    while (1) {
        if (rx_buffer_pop(&recv_data)) {
            bsp_led_toggle();
            printf("recv: %c\r\n", recv_data);
        }
    }
}

